import request from '@/utils/request'


// 组卷提交
export function queryQuBankAll(searchParams) {
  return request({
    url: '/quBank/queryQuBankAll',
    method: 'get',
    params:  searchParams 
  })
}
// 新增题库
export function saveQuBank(formData){
  return request({
    url:'/quBank/saveQuBank',
    method:'post',
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data:formData
  })

}
// 删除题库
export function delQuBank(formData){
  return request({
    url:'/quBank/delQuBank',
    method:'post',
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data:formData
  })

}

// 题目列表
export function queryQuAll(searchParams){
  return request({
    url:'/qu/queryAll',
    method:'post',
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data:searchParams
  })

}

// 题目详细信息
export function queryQuInfo(params){
  return request({
    url:'/qu/queryQuInfo',
    method:'get',
    params
  })

}

// 新增题目
export function saveQu(params){
  return request({
    url:'/qu/saveQu',
    method:'post',
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data:params
  })

}
// 更新题目
export function updateQu(params){
  return request({
    url:'/qu/updateQu',
    method:'post',
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data:params
  })

}


// 题库详情
export function queryBankDetail(params){
  return request({
    url:'/quBank/queryBankDetail',
    method:'get',
    params
  })

}
// 删除题目
export function delQu(params){
  return request({
    url:'/qu/del',
    method:'get',
    params
  })

}

export function getQuestionList(params){
  return request({
    url:'/question/getQuestionList',
    method:'get',
    params
  })

}

export function getQuestionInfo(params){
  return request({
    url:'/question/getQuestionInfo',
    method:'get',
    params
  })

}
export function delQuestion(params){
  return request({
    url:'/question/delQuestion',
    method:'get',
    params
  })
}

  export function getQuestionListIds(params){
    return request({
      url:'/question/getQuestionListIds',
      method:'get',
      params
    })
  
}

